import service from './index'

//按需导出
export function kcglPageCount(data) {
    return service({
        url: '/admin/course/page/count',
        method: 'get',
        params:data
    })
}
export function kcglPage(data,page) {
    return service({
        url: '/admin/course/page/'+page,
        method: 'get',
        params:data
    })
}
export function kcglAdd(data) {
    return service({
        url: '/admin/course',
        method: 'post',
        data:data
    })
}
export function departmentAll() {
    return service({
        url: '/admin/teacher/names',
        method: 'get',
    })
}
//详情
export function kcglDetail(id) {
    return service({
        url: '/admin/course/'+id,
        method: 'get',  
    })
}
//编辑
export function kcglEdit(data) {
    return service({
        url: '/admin/course',
        method: 'put',
        data:data  
    })
}
//删除
export function kcglDelete(id) {
    return service({
        url: '/admin/course/'+id,
        method: 'delete',

    })
}